package com.lsm.sm.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.lsm.sm.util.Const;

public class CourseInitListener implements ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
	}

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		ServletContext application = sce.getServletContext();
		
		application.setAttribute( Const.COURSE, "CoreJava" );
		application.setAttribute( Const.SCHEDUL, new Integer( 1 ) );
	}
	
}
